package domain

import (
	"pq/dto"
	"qiniupkg.com/x/errors.v7"
)

type UserDomain struct{

}

func (ud *UserDomain)SetTestCategory(user dto.UserDto,cid int) (dto.UserDto,error){
	if cid <= 0 {
		return user,errors.New("category not valid")
	}
	user.Set("category_id",cid)
	return user,nil
}

func (ud *UserDomain)StartSimpleRandomTest(){

}

func(ud *UserDomain)SubmitSimpleRandomTest(){

}
